package designpattern.factory.method;


public class Method {
    public static void main(String[] args) {
        AbstractCreatHumanFactory creatHumanFactory=new CreatBlack();
        Black huMan = (Black) creatHumanFactory.creatHuman();
        huMan.printColor();
        new CreatWhite().creatHuman().printColor();
        new CreatYellow().creatHuman().printColor();
    }

}
